package chapter10;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-03-22 上午11:38
 */
public class LocalizedTest {
    private static final Logger LOGGER = LoggerFactory.getLogger(LocalizedTest.class);

    public static void main(String[] args) {
        Locale locale = Locale.getDefault();
        LOGGER.info(locale.toString());
        LOGGER.info(Locale.CHINA.toString());

        ResourceBundle rb = ResourceBundle.getBundle("message", Locale.CHINA);
        LOGGER.info(rb.getString("yootk.info"));
    }
}
